home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 12390 < prev    next >
Encoding:
Text File  |  1996-08-05  |  3.0 KB  |  86 lines

  1. Path: feed.umontreal.ca!derby!not-for-mail
  2. From: duprec@JSP.UMontreal.CA (DUPRE Christophe)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Are these assumptions about libraries and headers correct ?
  5. Date: 30 Mar 1996 20:42:24 GMT
  6. Organization: Universite de Montreal
  7. Distribution: world
  8. Message-ID: <4jk6bg$qi6@epervier.CC.UMontreal.CA>
  9. References: <4jhjqe$l7u@sue.cc.uregina.ca>
  10. NNTP-Posting-Host: derby.jsp.umontreal.ca
  11. X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
  12.  
  13. Shayne G. Wright (wright@HERCULES.CS.UREGINA.CA) wrote:
  14. :     Hi
  15. :         I am trying to compile procps-0.99 and encounter
  16. :     this message :
  17. : /usr/X11R6/lib/libXt.so: undefined reference to `XkbLookupKeySym'
  18. :         I guess my assumption is, does the problem have
  19. :     anything to do with the header files in /usr/X11R6/include/X11/
  20. :     Or specifically a missing Xt/ subdirectory and/or a missing
  21. :     XkbLookupKeySym.h file. This is new to me, so please correct 
  22. :     me if I am wrong.
  23.  
  24. I don't think that's the case... I think it looks more like a linking 
  25. problem. As far as I know, there's no "Xt/" directory in 
  26. /usr/X11R6/include/X11.
  27.  
  28. When you linked, did you add the option "-L/usr/X11R6/lib" ?? this path 
  29. may not be in the lib search path.
  30. Another possibility in the lack of the link option "-lX11", as Xt needs 
  31. the lib X11 as well...
  32.  
  33.  
  34. :         Secondly, what is the difference between lib*.a, 
  35. :     lib*.sa, and lib*.so.* files ?
  36.  
  37. .a means a static library : objects are extracted at compile time and 
  38. linked with the binary.
  39. .so means a shared library : objects are extracted and linked at 
  40. execution time, thus reducing the binary file size. 
  41. Both of these types of file can be a.out or ELF.
  42. .sa is a.out only, and are the stubs for shared library : This permits 
  43. the linker to know where will be the shared libraries at run time.
  44.  
  45.  
  46. : krusty[procps-0.99a]=2=>>file libXt.*
  47. : libXt.a:        current ar archive
  48. : libXt.so:       symbolic link to libXt.so.6
  49. : libXt.so.6:     symbolic link to libXt.so.6.0
  50. : libXt.so.6.0:   ELF 32-bit LSB dynamic lib i386 (386 and up) Version 1
  51. :     Permissions are set (for the parent directories as well) :
  52. : krusty[procps-0.99a]=3=>>ls -al libXt.*
  53. : -rw-r--r--   356750 Feb 28 00:34 libXt.a
  54. : lrwxrwxrwx       12 Mar 23 00:21 libXt.so -> libXt.so.6
  55. : lrwxrwxrwx       12 Mar 23 00:21 libXt.so.6 -> libXt.so.6.0*
  56. : -rwxr-xr-x   308539 Feb 28 00:34 libXt.so.6.0*
  57. :     
  58. :     And for further verification :
  59. : krusty[lib]=2=>>nm libXt.so |grep XkbLookupKeySym
  60. :          U XkbLookupKeySym
  61. : krusty[lib]=3=>>nm libXt.a | grep XkbLookupKeySym 
  62. :          U XkbLookupKeySym
  63.  
  64. All the information seems OK for me...
  65.  
  66. -- 
  67. Christophe Dupre                              Universite de Montreal
  68. Internet: duprec@jsp.umontreal.ca             Qc, Canada
  69. Montreal, Qc, Canada
  70. "Nous ne sommes pas libres de ne pas etre libres, nous sommes obliges de 
  71. l'etre"  -  Fernando Savater
  72.  
  73. -- Geek Code 2.1 --
  74. GCS d-- H+ s:++ g+ !p au-* a19 w+ v+ C++(+++) UIL++>+++ P+>++ L++ 
  75.     3- E---- N++ K W- M- V-- Y+ t++ 5++ !j R+ G- tv b++
  76.     D+ e+ u** h->++ f+ r++ n---(----) y+
  77.  
  78. #include <disclaimer.h>
  79.  
  80.